BIN=test

CC = g++
FLAGS = -c -std=c++11

SRC = $(shell ls *.cc)
OBJ = $(SRC:.cc=.o)

$(BIN):$(OBJ)
	$(CC) -o $@ $^
%.o:%.cc
	$(CC) -c $(FLAGS) $<

.PHONY:clean
clean:
	rm -f $(BIN) $(OBJ)